﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameViewer.Core;
using GameViewer.Core.Archives;

namespace Plugin_TX2
{
    public class PluginEntry : GameViewer.Core.Plugins.IPlugin
    {
        private bool mActive = false;

        #region IPlugin 成员

        public string PluginName
        {
            get { return "TX2"; }
        }

        public bool Active
        {
            get
            {
                return mActive;
            }
            set
            {
                if (mActive == value)
                {
                    return;
                }
                mActive = value;
                if (value)
                {
                    this.Init();
                }
            }
        }

        public void Configure()
        {
            //throw new NotImplementedException();
        }

        #endregion

        private void Init()
        {
            ArchiveManager.Instance.AddFactory(new Archives.BagArchiveFactory());

            //ViewerManager.Instance.AddViewer("blp", typeof(Viewers.BLPViewer));
        }
    }
}
